package com.lys.dao;

import com.lys.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 * 订单处理的dao层
 * getRowCount
 * getRowList(Params params)
 * getById(Integer id)
 * addObject(Params params)
 */
@Mapper
public interface OrderDao {

	public void add(Order order) ;

	public void deleteById(@Param("id") Integer id);

	public Order getOrderById(@Param("id") Integer id) ;
	
	public List<Order> getOrderList(@Param("userId") Integer userId,
									@Param("currentPageNo") Integer currentPageNo,
									@Param("pageSize") Integer pageSize) ;
	
	public Integer count(@Param("userId") Integer userId);
}
